import request from '@/utils/request.js'

// 首页模块查询
export function getHomeModule(data) {
  return request({
    url: '/appletTab/list',
    method: 'GET',
    params: data,
  })
}

// 首页模块添加
export function addHomeModule(data) {
  return request({
    url: '/appletTab/insert',
    method: 'POST',
    data,
  })
}

// 首页模块修改
export function updateHomeModule(data) {
  return request({
    url: '/appletTab/update',
    method: 'POST',
    data,
  })
}

// 首页模块删除
export function deleteHomeModule(data) {
  return request({
    url: '/appletTab/delete',
    method: 'POST',
    data,
    headers: {
      'content-type': 'multipart/form-data; boundary=something',
    },
  })
}

// 首页模块排序
export function sortHomeModule(data) {
  return request({
    url: '/appletTab/sort',
    method: 'POST',
    data,
    headers: {
      'content-type': 'multipart/form-data; boundary=something',
    },
  })
}
